|
|
|
|
- Gestion de la double authentification
<WBadminAuth variable>.ListApplication (Function) In french: <Variable adminWBAuth>.ListeApplication Returns the list of applications on a WEBDEV Application Server, for a given account and a given type. login is WBAdminAuth
login.ServerAddress = "http://xxxx"
login.User = "monuser"
login.Password = "monmotdepasse"
Applications is array of WBAdminApplication
Applications = login.ListeApplication()
FOR i = 1 _TO_ Applications.Occurrence
Trace(Applications[i].Nom)
END
Syntax
<Result> = <WEBDEV Application Server>.ApplicationList([<Owner account> [, <Application type>]])
<Result>: WLanguage array Array of WBAdminApplication variables containing the list of requested applications. <WEBDEV Application Server>: WBAdminAuth variable Name of the WBAdminAuth variable that describes the server and the administrator account used to query the WEBDEV Application Server. <Owner account>: Optional character string Name of the owner account whose applications are to be listed. If this parameter is an empty string ("") or "*", all the applications on the server will be listed. <Application type>: Optional Integer constant Type of application to list: | | WBAdminTypeSite | WEBDEV website. | WBAdminTypeRESTWebservice | REST web services. | WBAdminTypeSOAPWebservice | SOAP web services. | WBAdminTypeWebSocket | WebSockets. | If this parameter is not specified, all application types will be listed. Remarks New in version 2024Gestion de la double authentification Il est possible d'activer la double authentification sur un compte via l'administrateur distant WEBDEV. La vérification en 2 étapes nécessite d'obtenir un code unique pour vérifier l'identité de l'utilisateur. Ce code peut être reçu par email ou via une application "Authenticator". Lors de l'utilisation d'une fonction de pilotage du serveur d'application WEBDEV, si le compte utilise la double authentification, une erreur d'authentification peut survenir. Deux cas doivent être pris en compte : - si la fonction renvoie un booléen, <Résultat> est à Faux. Pour vérifier si l'erreur concerne l'authentification, il est nécessaire de vérifier la valeur de la variable ErreurDétectée et la valeur renvoyée par la fonction ErreurInfo
- si la fonction ne renvoie pas de booléen. Pour vérifier si l'erreur concerne l'authentification, les conditions suivantes doivent être réunies :
La procédure à suivre pour gérer cette erreur est la suivante : - Faire une fenêtre / page permettant à l'utilisateur de saisir son code de vérification.
- En cas d'erreur due à la double authentification :
- Afficher la fenêtre de saisie du code de vérification.
- L'utilisateur reçoit automatiquement le code d'authentification selon la méthode choisie dans l'administrateur distant WEBDEV. Il peut alors saisir le code dans la fenêtre / page.
- Affecter le code à la propriété "CodeVérification" de la variable adminWBAuth.
- Ré-exécuter la fonction de pilotage.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|